On X, avoid reporting unrepresentable touch IDs to Lisp
authorPo Lu <luangruo@yahoo.com>
Sat, 1 Jun 2024 05:53:37 +0000 (13:53 +0800)
committerPo Lu <luangruo@yahoo.com>
Sat, 1 Jun 2024 05:53:37 +0000 (13:53 +0800)
commitb1692e23edc32ce8938d3af200c0c42c8aa6b313
tree091eed974b2f34ae49d4611b4c3af2a5ebac7292
parent0cb511b33bc96fc30d8e5286a474b4eea54817e3
On X, avoid reporting unrepresentable touch IDs to Lisp

* src/xterm.c (xi_link_touch_point): Assign a Lisp-representable
identifier to the new touch point and return the same.
(xi_unlink_touch_point): New arg LOCAL_DETAIL.  Return such an
identifier if there is a matching touch point record.
(handle_one_xevent): Adjust as is proper.

* src/xterm.h (struct xi_touch_point_t) <local_detail>:
New field.  Reorder fields for alignment.
src/xterm.c
src/xterm.h